package gamebackend;

public enum MovementVars {
	
	FORWARD_SPEED("Forward Speed"),
	SIDEWAYS_SPEED("Sideways Speed"),
	SIDEWAYS_ACCELERATION("Sideways Acceleration"),
	SIDEWAYS_DECELERATION("Sideways Deceleration");
	
	private final String my_name;

	private MovementVars(String name) {
		my_name = name;
	}
	public String getName() {
		return my_name;
	}
	/**
	 * Returns the MovementVars with this name, or null if not found.
	 */
	public static MovementVars get(String name) {
		for (MovementVars var : values()) {
			if (var.getName().equals(name)) {
				return var;
			}
		}
		return null;
	}
}
